package com.dingpeikeji.quickdeer.modules.rentproduct.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.dingpeikeji.quickdeer.core.common.persistence.Page;
import com.dingpeikeji.quickdeer.modules.rentproduct.dao.RentproductDebtDao;
import com.dingpeikeji.quickdeer.modules.rentproduct.entity.RentproductDebt;

@Service
@Transactional(readOnly = true)
public class RentproductDebtService {
	@Autowired
	private RentproductDebtDao dao;
	
	public Page<RentproductDebt> findPage(Page<RentproductDebt> page,RentproductDebt debt){
		debt.setPage(page);
		page.setList(dao.findList(debt));
		return page;
	}
	
}
